using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class UlAdviceConfiguration : EntityTypeConfiguration<UlAdvice>
    {
        public UlAdviceConfiguration()
        {
            Property(g => g.UlAdviceID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
         
            Property(g => g.Modified).IsOptional();
           
            Property(g => g.AdviceState).IsOptional();
            Property(g => g.AdviceType).IsOptional();
            Property(g => g.ExternalNumber).IsOptional();
            Property(g => g.LabelID).IsRequired();
            Property(g => g.Number).IsOptional();
            Property(g => g.ReasonForReturn).IsOptional();
            Property(g => g.SwitchStateInfo).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.UnitLoadTypeID).IsRequired();
            Property(g => g.RelatedAdviceID).IsRequired();
        }
    }
}
